package com.database.model;

import com.database.model.param.UserParam;

public class User {
	private Integer userId;
	private String account;
	private String name;
	private String password;
	private String email;
	private String contact;
	private double balance;
	private String address;
	private String photoPath;
	private String sex;// 性别

	public User() {

	}

	public User(UserParam userParam) {
		userId = userParam.getUserId();
		account = userParam.getAccount();
		name = userParam.getName();
		password = userParam.getPassword();
		email = userParam.getEmail();
		contact = userParam.getContact();
		balance = userParam.getBalance();
		address = userParam.getAddress();
		photoPath = userParam.getPhotoPath();
		sex = userParam.getSex();

	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhotoPath() {
		return photoPath;
	}

	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

}